package com.icoopoo.log.rolling.sub;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * @Author : leih
 * @Date : 2020/8/31 14:36
 * @Version : 1.0
 * @Description : TODO
 * @ClassName : ConsoleService
 */
@Service
public class RollingService {

    private final static Logger logger = LoggerFactory.getLogger(RollingService.class);

    public void logTest(Integer numLine){

        for (int i = 0 ;i < numLine; i++){
            logger.error("RollingService    在classpath下寻找是否有logback-test.xml，在classpath下寻找是否有logback.xml");
            logger.warn("RollingService     在classpath下寻找是否有logback-test.xml，在classpath下寻找是否有logback.xml");
            logger.info("RollingService     在classpath下寻找是否有logback-test.xml，在classpath下寻找是否有logback.xml");
            logger.debug("RollingService    在classpath下寻找是否有logback-test.xml，在classpath下寻找是否有logback.xml");
            logger.trace("RollingService    在classpath下寻找是否有logback-test.xml，在classpath下寻找是否有logback.xml");
        }
    }



}
